package com.jinlong.mq.roducer;


import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;


import javax.print.attribute.standard.Destination;

/***
 * 消息服务推送邮件服务
 *
 */
@Service
public class RegisterMailboxProducer {
    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;

    public void send(ActiveMQQueue destination, String json){
        jmsMessagingTemplate.convertAndSend(String.valueOf(destination),json);
    }

}
